package protobuf {
	import com.netease.protobuf.*;
	use namespace com.netease.protobuf.used_by_generated_code;
	import com.netease.protobuf.fieldDescriptors.*;
	import flash.utils.Endian;
	import flash.utils.IDataInput;
	import flash.utils.IDataOutput;
	import flash.utils.IExternalizable;
	import flash.errors.IOError;
	// @@protoc_insertion_point(imports)

	// @@protoc_insertion_point(class_metadata)
	public dynamic final class MSPKG_QUERY_CALL_NTF extends com.netease.protobuf.Message {
		/**
		 *  @private
		 */
		public static const TABLE_ID:FieldDescriptor$TYPE_UINT64 = new FieldDescriptor$TYPE_UINT64("protobuf.MSPKG_QUERY_CALL_NTF.table_id", "tableId", (1 << 3) | com.netease.protobuf.WireType.VARINT);

		public var tableId:UInt64;

		/**
		 *  @private
		 */
		public static const CAN_PASS:FieldDescriptor$TYPE_BOOL = new FieldDescriptor$TYPE_BOOL("protobuf.MSPKG_QUERY_CALL_NTF.can_pass", "canPass", (2 << 3) | com.netease.protobuf.WireType.VARINT);

		public var canPass:Boolean;

		/**
		 *  @private
		 */
		public static const CAN_CALL:FieldDescriptor$TYPE_BOOL = new FieldDescriptor$TYPE_BOOL("protobuf.MSPKG_QUERY_CALL_NTF.can_call", "canCall", (3 << 3) | com.netease.protobuf.WireType.VARINT);

		public var canCall:Boolean;

		/**
		 *  @private
		 */
		public static const CAN_BET:FieldDescriptor$TYPE_BOOL = new FieldDescriptor$TYPE_BOOL("protobuf.MSPKG_QUERY_CALL_NTF.can_bet", "canBet", (4 << 3) | com.netease.protobuf.WireType.VARINT);

		public var canBet:Boolean;

		/**
		 *  @private
		 */
		public static const CAN_RAISE:FieldDescriptor$TYPE_BOOL = new FieldDescriptor$TYPE_BOOL("protobuf.MSPKG_QUERY_CALL_NTF.can_raise", "canRaise", (5 << 3) | com.netease.protobuf.WireType.VARINT);

		public var canRaise:Boolean;

		/**
		 *  @private
		 */
		override used_by_generated_code final function writeToBuffer(output:com.netease.protobuf.WritingBuffer):void {
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.VARINT, 1);
			com.netease.protobuf.WriteUtils.write$TYPE_UINT64(output, this.tableId);
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.VARINT, 2);
			com.netease.protobuf.WriteUtils.write$TYPE_BOOL(output, this.canPass);
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.VARINT, 3);
			com.netease.protobuf.WriteUtils.write$TYPE_BOOL(output, this.canCall);
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.VARINT, 4);
			com.netease.protobuf.WriteUtils.write$TYPE_BOOL(output, this.canBet);
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.VARINT, 5);
			com.netease.protobuf.WriteUtils.write$TYPE_BOOL(output, this.canRaise);
			for (var fieldKey:* in this) {
				super.writeUnknown(output, fieldKey);
			}
		}

		/**
		 *  @private
		 */
		override used_by_generated_code final function readFromSlice(input:flash.utils.IDataInput, bytesAfterSlice:uint):void {
			var table_id$count:uint = 0;
			var can_pass$count:uint = 0;
			var can_call$count:uint = 0;
			var can_bet$count:uint = 0;
			var can_raise$count:uint = 0;
			while (input.bytesAvailable > bytesAfterSlice) {
				var tag:uint = com.netease.protobuf.ReadUtils.read$TYPE_UINT32(input);
				switch (tag >> 3) {
				case 1:
					if (table_id$count != 0) {
						throw new flash.errors.IOError('Bad data format: MSPKG_QUERY_CALL_NTF.tableId cannot be set twice.');
					}
					++table_id$count;
					this.tableId = com.netease.protobuf.ReadUtils.read$TYPE_UINT64(input);
					break;
				case 2:
					if (can_pass$count != 0) {
						throw new flash.errors.IOError('Bad data format: MSPKG_QUERY_CALL_NTF.canPass cannot be set twice.');
					}
					++can_pass$count;
					this.canPass = com.netease.protobuf.ReadUtils.read$TYPE_BOOL(input);
					break;
				case 3:
					if (can_call$count != 0) {
						throw new flash.errors.IOError('Bad data format: MSPKG_QUERY_CALL_NTF.canCall cannot be set twice.');
					}
					++can_call$count;
					this.canCall = com.netease.protobuf.ReadUtils.read$TYPE_BOOL(input);
					break;
				case 4:
					if (can_bet$count != 0) {
						throw new flash.errors.IOError('Bad data format: MSPKG_QUERY_CALL_NTF.canBet cannot be set twice.');
					}
					++can_bet$count;
					this.canBet = com.netease.protobuf.ReadUtils.read$TYPE_BOOL(input);
					break;
				case 5:
					if (can_raise$count != 0) {
						throw new flash.errors.IOError('Bad data format: MSPKG_QUERY_CALL_NTF.canRaise cannot be set twice.');
					}
					++can_raise$count;
					this.canRaise = com.netease.protobuf.ReadUtils.read$TYPE_BOOL(input);
					break;
				default:
					super.readUnknown(input, tag);
					break;
				}
			}
		}

	}
}
